package com.miku.mikuapiclientsdk;

import com.miku.mikuapiclientsdk.client.MikuApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * YuApi 客户端配置
 *
 * @author <a href="https://gitee.com/deng-taotao-eee">miku</a>
 * @from <a href=""></a>
 */
@Configuration
@ConfigurationProperties("yuapi.client")
@Data
@ComponentScan
public class MikuApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public MikuApiClient yuApiClient() {
        return new MikuApiClient(accessKey, secretKey);
    }

}
